package com.cx.decorator;

import com.cx.HandleInterceptor;

/**
 * @Author:cxy
 * @Date:2022/4/10 11:14
 */
public abstract class SsoDecorator implements HandleInterceptor {

    private HandleInterceptor handleInterceptor;

    public SsoDecorator(HandleInterceptor handleInterceptor) {
        this.handleInterceptor = handleInterceptor;
    }

    public SsoDecorator() {
    }

    @Override
    public boolean preHandle(String request, String respone, Object handler) {
        return handleInterceptor.preHandle(request, respone, handler);
    }
}
